import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: "/",
      name: "main",
      component: () => import("@/views/Main"),
      children: [
        {
          path: "/user",
          name: "user",
          component: () => import("@/views/UserManage/index.vue")
        },
        {
          path: "/video",
          name: "video",
          component: () => import("@/views/VideoMange/index.vue")
        },
        {
          path: "/other",
          name: "other",
          component: () => import("@/views/Other/index.vue")
        },
        {
          path: "/other2",
          name: "other2",
          component: () => import("@/views/Other2/index.vue")
        }
      ]
    }
  ]
});

export default router;
